home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / datescrn.arc / CLR_SCRN.C < prev    next >
Text File  |  1985-12-12  |  1KB  |  23 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /* This function was written by Jim Niederriter for the Lattice `C' Compiler*/
  4. /* on the IBM Personal Computer or compatible, running DOS 2.0.             */
  5. /*                                                                          */
  6. /* It requires that the system be booted with a CONFIG.SYS file on the boot */
  7. /* disk containing the record: DEVICE=ANSI.SYS                              */
  8. /*                                                                          */
  9. /* In addition, the ANSI.SYS file from the DOS 2.0 disk should also be on   */
  10. /* the boot disk.                                                           */
  11. /*                                                                          */
  12. /* See Chapter 13 of the DOS 2.0 Manual for further explanation.            */
  13. /*                                                                          */
  14. /****************************************************************************/
  15.  
  16. /*  clr_scrn() */
  17. /*  this funtion clears the screen and sets the cursor position to 0,0 */
  18.  
  19. int clr_scrn()
  20. {
  21.      cprintf("\x1B[2J");
  22. }
  23.